package com.luoxin.servicemap.controller;

import com.luoxin.internalcommon.dto.ResponseResult;
import com.luoxin.internalcommon.request.ForecastPriceDTO;
import com.luoxin.servicemap.service.DirectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/direction")
public class DirectionController {
    @Autowired
    private DirectionService directionService;
    @PostMapping("/driving")
    public ResponseResult driving(@RequestBody ForecastPriceDTO forecastPriceDTO){
        return directionService.driving(forecastPriceDTO);
    }
}
